package com.krlin.soccer.soccer.service;

import com.krlin.soccer.soccer.entity.Judge;
import com.krlin.soccer.soccer.mapper.JudgeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JudgeService {

    @Autowired
    JudgeMapper judgeMapper;

    public Judge getJudgeById(String idCard) {
        return judgeMapper.selectJudgeByIdCard(idCard);
    }

    public List<Judge> getAllJudges() {
        return judgeMapper.getAll();
    }
}
